package com.bootdo.collection.utils;

import com.bootdo.collection.domain.PictureDO;
import org.apache.commons.codec.binary.Base64;
public class Base64Utils {
    public String imageToBase64String(PictureDO pictureDO, String referValue) {
        byte[] imageByte = ImageByteUtil.fetchContent(pictureDO, referValue);
        return Base64.encodeBase64String(imageByte);
    }
}
